package cn.net.zj.scan.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import cn.net.zj.scan.R;
import cn.net.zj.scan.bean.TaskDetailBean;

public class TaskListDetailAdapter extends BaseQuickAdapter<TaskDetailBean, BaseViewHolder> {
    public TaskListDetailAdapter(int layoutResId, @Nullable List<TaskDetailBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, TaskDetailBean item) {
        helper.setText(R.id.textView, item.getFindex()+"");
        helper.setText(R.id.tvFitem, item.getR_fitem());
        helper.setText(R.id.tvFname, item.getR_fname());
        helper.setText(R.id.tvFmodle, item.getR_fmodel());
        helper.setText(R.id.tvQty, item.getR_qty()+"");
        helper.setText(R.id.tvIn, item.getR_int()+"");
        helper.setText(R.id.tvUnin, item.getR_unint()+"");
    }
}
